package nl.Viewer.SerializedObjects;

import java.util.HashMap;

/**
 * Client-side deserialization of a modality
 * 
 * @author Jeroen Verschuur
 * 
 */

public class Modality {
   protected final int                       modalityId;
   protected final String                    name;
   protected final String                    description;
   protected HashMap<Integer, Visualization> visualizations          = new HashMap<Integer, Visualization>();
   protected String                          serializingAlignmentsTo;

   public Modality( int modalityId, String name, String description ) {
      super();
      this.modalityId = modalityId;
      this.name = name;
      this.description = description;
   }

   public Visualization getVisualization( int visualizationId ) {
      return visualizations.get( visualizationId );
   }

   public String getName() {
      return name;
   }

   public String getDescription() {
      return description;
   }

   public HashMap<Integer, Visualization> getVisualizations() {
      return visualizations;
   }

   public int getModalityId() {
      return modalityId;
   }

   public String toString() {
      return "Modality: [" + modalityId + "/" + name + "/" + description + "/visualizations: " + visualizations.size()
         + "]";
   }

}
